<script type="text/javascript">
	$(document).ready(function() {
		$("#nonactives").tablesorter({
			widthFixed: true,
			widgets: ['zebra']
		}).tablesorterPager({
			container: $(".pager")
		});
	});
</script>

<div id="main-content" class="prepend-1 span-19 last">
<h3>Detil Beasiswa - <?php echo $scholarship->name; ?></h3>
	<table>
		<tr>
			<td width="200"><label>Nama Beasiswa</label></td>
			<td><?php echo $scholarship->name; ?></td>
		</tr>
		<tr>
			<td><label>Awal Periode</label></td>
			<td><?php echo date(MONTH_YEAR_FORMAT, strtotime($scholarship->period_start)); ?></td>
		</tr>
		<tr>
			<td><label>Akhir Periode</label></td>
			<td><?php echo date(MONTH_YEAR_FORMAT, strtotime($scholarship->period_end)); ?></td>
		</tr>
		<tr>
			<td><label>Batas Pendaftaran</label></td>
			<td><?php echo date(DAY_FORMAT, strtotime($scholarship->deadline)); ?></td>
		</tr>
		<tr>
			<td><label>Jenis Beasiswa</label></td>
			<td><?php echo $scholarship->type.nbs(3); ?></td>
		</tr>
		<tr>
			<td><label>Sponsor</label></td>
			<td><?php echo $scholarship->sponsor; ?></td>
		</tr>
		<tr>
			<td><label>Berkas Dibutuhkan</label></td>
			<td><?php echo $scholarship->required_files; ?></td>
		</tr>
		<tr>
			<td><label>Keterangan</label></td>
			<td><?php echo $scholarship->details; ?></td>
		</tr>
		<tr>
			<td><label>Status</label></td>
			<td><span class="info"><?php echo $status; ?></span></td>
		</tr>
		<tr>
			<td><b>Jumlah Penerima</b></td>
			<td><?php echo $counter; ?></td>
		</tr>
	</table>
	<div class="clear"><?php echo nbs(); ?></div>
	<h4><?php echo $title; ?></h4>
	<table id="nonactives">
	<thead>
		<tr>
			<th>Nama Mahasiswa</th>
			<th width="150">Angkatan</th>
			<th width="300">Program Studi</th>
			<th width="150"><?php echo $studentstatus; ?></th>
		</tr>
	</thead>
	<tfoot>
		<?php echo $pager; ?>
	</tfoot>
	<tbody>
<?php 
	if ($recievers == NULL) :
?>
		<tr>
			<td align="center" colspan="4">
				<span class="info"><?php echo $empty; ?></span>
			</td>
		</tr>
<?php 
	else :
		foreach ($recievers as $reciever) :
?>
		<tr>
			<td><?php echo anchor($role.'/student/profile/index?id='.$reciever->id, $reciever->name, array('target' => '_blank')); ?></td>
			<td align="center"><?php echo $reciever->year; ?></td>
			<td><?php echo $reciever->major; ?></td>
			<td align="center"><?php echo $reciever->delivery; ?></td>
		</tr>
<?php 
		endforeach;
	endif;
?>
	</tbody>
	</table>
	<div class="clear"><?php echo nbs(); ?></div>
</div>